package com.itheima.fanxing2;

import com.itheima.domain.Student;

public class Demo01 {
    public static void main(String[] args) {
        Box<String> stringBox = new Box<>();
        stringBox.setT("小蔡");
        System.out.println(stringBox);
        System.out.println(stringBox.getT());


        Box<Student> studentBox = new Box<>();
        studentBox.setT(new Student("鹿鹿",28));
        System.out.println(studentBox);
        Student t = studentBox.getT();
        System.out.println(t);
    }

}
